package nl.ViewerServer.ServerManager.JobManager;

/**
 * This class represents a defined paraview node and is also used for job to thread assignment in for example the
 * LocalityStrategy
 * 
 * @author Administrator
 * 
 */
public class ParaViewMachine {
   public String        host;
   public int           coreCount;
   public int           rating;
   public transient int physicalCoreCount; // this is used for the LocalityStrategy

   public ParaViewMachine( String host, int coreCount, int rating ) {
      super();
      this.host = host;
      this.coreCount = coreCount;
      this.rating = rating;

      this.physicalCoreCount = coreCount;
   }

   public String toString() {
      return "ParaViewMachine: [" + host + "/" + coreCount + " cores/rating:" + rating + " (phys:" + this.physicalCoreCount + ")";
   }

}
